package com.ziqikeji.listener;

/**
 * 按钮
 * Created by FlyFive on 2018/5/23.
 */
public class Button {

    public String name; //按钮名称，区分多个按钮使用

    public Button(String name) {
        this.name = name;
    }

    public void click(ClickListener clickListener) {
        System.out.println(this.name + "内置点击事件");
        Event e = new Event(this.name, "点击事件");
        clickListener.handle(e);
    }
}
